﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Model.Object
{
    public class ChiTietHoaDon
    {

        [Key]
        public int ID { get; set; }

        public int ID_Sanpham { get; set; }
        [ForeignKey("ID_Sanpham")]
        public virtual SanPham SanPham { get; set; }

        public int ID_Hoadon { get; set; }
        [ForeignKey("ID_Hoadon")]
        public virtual HoaDon HoaDon { get; set; }

        public int So_luong { get; set; }

        public int Thanh_tien { get; set; }
    }
}
